package com.hzh.blog.common.web;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * 
 * @Author:1984
 * @Written by:
 * @Creation date: 2011-3-1 下午04:36:09
 * @Version: V1.0
 * @Description:
 */
public class LoginInterceptor extends AbstractInterceptor {

	/**
	 * @Author:1984
	 * @Written by:
	 * @Creation date: 2011-3-1 下午04:36:07
	 * @Version: V1.0
	 * @Description:
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 检查是否登录 
	 * @Author:1984
	 * @Written by:
	 * @Creation date: 2011-3-1 下午04:36:17
	 * @Version: V1.0
	 * @Description:
	 *(non-Javadoc)
	 * @see com.opensymphony.xwork2.interceptor.AbstractInterceptor#intercept(com.opensymphony.xwork2.ActionInvocation)
	 */
	
	public String intercept(ActionInvocation invocation) throws Exception {
		/*LoginInfoVO currentUser = (LoginInfoVO)ServletActionContext.getRequest().getSession().getAttribute("login");
		
		if(currentUser == null){
			return "login";
		}*/
		
	
		return invocation.invoke();
	}

}
